#ifndef evdictCUI_h
#define evdictCUI_h

/*
	Ten file: evdictCUI.h
	(E-V dictionary console user interface)
	Giao dien nguoi dung cua chuong trinh duoi dang dong lenh, goi cac ham tu evdictbase.h
*/

#include "evdictbase.h"



// ham hien thi khung chuong trinh
void showLayoutScreen();

// Ham nhap vao 1 tu
char* enterWord();

// Ham hien thi 1 thong bao cho nguoi dung
void showMessage(char* message);

// Ham hien thi 1 thong bao cho nguoi dung
void showMessage(char* message, int x, int y);

// Ham hoi nguoi dung co chac chan 1 thao tac nao khong
boolean showConfirmDialog(char* question);

// Ham hien thi noi dung cua 1 tu
void showWordDefinition(WordDefinition word);

// Ham nhap vao noi dung cua 1 tu
WordDefinition enterWordDefinition(char* word);

// Ham hien thi menu chuc nang khi bat dau chuong trinh, chi co Enter=Nhap tu, Esc=Thoat
void showContextMenu();

// Ham hien thi menu chuc nang sau khi nhap 1 tu
// Co the co Insert=Them tu, Delete=Xoa tu, M=Cap nhat noi dung cua tu
// Goi ham enterWordDefinition(), showConformDialog(), showMessage()
void showContextMenu(int address, char* word, char* hashCode);

#endif